# -*- coding: utf-8 -*-
"""
Created on Fri May 17 15:31:10 2024

@author: Administrator
"""

def is_prime(n):
    is_prime_flag = 1
    for i in range(2,n):
        if n%i == 0:
            is_prime_flag=0
            break
    return is_prime_flag

"""
n = int(input("输入一个正整数："))
flag = is_prime(n)

if flag:
   print(n,'是素数')
else:
   print(n,'不是素数')
"""